package com.hzw.code.vm.event

import com.blankj.utilcode.util.ToastUtils

/**
 *
 * @Author:         HuaZhongWei
 * @CreateDate:     2020/4/20 10:12
 *
 * @Description:    各个组件的公共事件
 *
 */
interface ICommonEvent {

    fun showLoading()

    fun hideLoading()

    fun showContent()

    fun showError()

    fun showNetError()

    fun showEmpty()

    fun showToast(msg: String?) {
        msg?.let { ToastUtils.showShort(it) }
    }
}